const dateRegex = /更新时间：(\d{4}-\d{2}-\d{2})/

// 获取文档
export function getUpdateTime(text, regex = dateRegex) {
  const match = text.match(regex)

  if (match) {
    const updateTime = match[1]
    return updateTime
  } else {
    return '2024-11-10'
  }
}
